func (tensor *Tensor) Dtype() tf.DataType {
	return tensor.Output.DataType()
}
Dtype returns the tensor dtype
package tfgo
import (
	tf "github.com/galeone/tensorflow/tensorflow/go"
	"github.com/galeone/tensorflow/tensorflow/go/op"
)
type Tensor struct {
	Root *op.Scope
	Path *op.Scope
	Output tf.Output
}
func NewTensor(scope *op.Scope, tfout tf.Output) (tensor *Tensor) {
	tensor = new(Tensor)
	tensor.Root = scope
	tensor.Path = NewScope(scope)
	tensor.Output = op.Identity(tensor.Path.SubScope("Identity"), tfout)
	return tensor
}
func (tensor *Tensor) Check() {
	err := tensor.Path.Err()
	if err != nil {
		panic(err.Error())
	}
}
func (tensor *Tensor) Scope() *op.Scope {
	return tensor.Path
}
func (tensor *Tensor) Shape64(firstDimension bool) []int64 {
	dims64, _ := tensor.Output.Shape().ToSlice()
	if firstDimension {
		return dims64
	}
	return dims64[1:]
}
func (tensor *Tensor) Shape32(firstDimension bool) []int32 {
	dims64 := tensor.Shape64(firstDimension)
	var dims32 = make([]int32, len(dims64))
	for idx, dim := range dims64 {
		dims32[idx] = int32(dim)
	}
	return dims32
}